package com.southwind.phone_store_demohd.repository;


import com.southwind.phone_store_demohd.entity.PhoneInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PhoneInfoRepository extends JpaRepository<PhoneInfo,Integer> {

    //根据类型(category_type)字段查询对应的手机
    public List<PhoneInfo> findAllByCategoryType(Integer categoryType);
}
